package com.ykdl.member.kid.beans;

import java.io.Serializable;

import android.text.TextUtils;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.models.FileMetas;

import net.wxxr.http.interfaces.IJsonParser;

public class AvatarBean implements Serializable,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = -2208406560036251602L;
	private FileMetas avatar;
	private FileBean file;
	private String desc ;
	private String error ;
	public String getDesc() {
		return desc;
	}

	public String getError() {
		return error;
	}

	public FileBean getFile() {
		return file;
	}

	public FileMetas getAvatar() {
		return avatar;
	}

	public void setAvatar(FileMetas avatar) {
		this.avatar = avatar;
	}

	@Override
	public IJsonParser parse(String json) throws Exception {
		if(!TextUtils.isEmpty(json)){
			GsonBuilder b = new GsonBuilder();
			Gson gson = b.create();
			return gson.fromJson(json, AvatarBean.class);
		}
		return null;
	}

}
